<template>
  <div v-if="show" style="text-align: center">
    <a-form :label-col="{ span: 6 }" :wrapper-col="{ span: 12 }" style="text-align: center">
      <a-row>
        <a-col :span="12">
          <a-form-item label="结算单编号">
            <a-input v-model="data.balanceAccountsNo" disabled />
          </a-form-item>
          <a-form-item label="客户姓名">
            <a-input v-model="data.customerName" disabled />
          </a-form-item>
          <a-form-item label="项目名称">
            <a-input v-model="data.projectName" disabled />
          </a-form-item>
          <a-form-item label="结算名称">
            <a-input v-model="data.balanceAccountsName" disabled />
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="金额">
            <a-input v-model="data.money" disabled />
          </a-form-item>
          <a-form-item label="待收款金额">
            <a-input v-model="data.toBeCollectedMoney" disabled />
          </a-form-item>
          <a-form-item label="结算时间">
            <a-input v-model="data.balanceAccountsTime" disabled />
          </a-form-item>
        </a-col>
      </a-row>
    </a-form>
  </div>
</template>
<script>
import { getAction } from '@/api/manage'
export default {
  name: "ProjectSettlement",
  data() {
    return {
      data: '',
      show: false,
      url: {
        getProjectSettlementById: '/ghCustomerProjectBalanceAccounts/getById',
      }
    }
  },
  methods: {
    initData(params) {
      getAction(this.url.getProjectSettlementById, params).then(res => {
        if (res.success) {
          this.data = res.result;
        }
      });
    }
  }
}
</script>
<style>

</style>